package com.elink.enginerring.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.elink.enginerring.co.BaseCo;
import com.elink.enginerring.domain.Reply;

public interface ReplyMapper {
    int deleteByPrimaryKey(Integer replyId);

    int insert(Reply record);

    int insertSelective(Reply record);

    Reply selectByPrimaryKey(Integer replyId);
    

    int updateByPrimaryKeySelective(Reply record);

    int updateByPrimaryKey(Reply record);
    
    List<Reply> getReplyByPrimaryKey(@Param("pbId")String pbId,@Param("co")BaseCo co,@Param("userId")String userId);

	int  selectCount(@Param("pbId")String pbId);
	
	List<Reply> selectReplyByUserId(@Param("userId")String userId,@Param("co")BaseCo co);
	
	int selectReplyCount(@Param("userId")String userId);

	void updateSelect(@Param("replyId")int replyId);
	
	int  selectCountOfBestAnswer(@Param("pbId")String pbId);

	int select(@Param("userId")String userId, @Param("postbarId")String postbarId);
	
	Reply selectByUserId(@Param("replyId")Integer replyId,@Param("userId")String userId);

	Reply selectInfo(@Param("replyId")Integer replyId,@Param("userId")String userId);
	
}